package com.chenfan.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@ApiModel
@Data
@EqualsAndHashCode(callSuper = true)
public class UserVO extends BaseUserVO implements Serializable {

    private static final long serialVersionUID = 6802290162943323122L;

    @ApiModelProperty(value = "用户名称")
    @NotNull(message = "用户名称不能为空")
    private String realName;

    @ApiModelProperty(value = "所属部门")
    @NotNull(message = "所属部门不能为空")
    private String sysOrgCode;

    @ApiModelProperty(value = "所属公司")
    @NotNull(message = "所属公司不能为空")
    private String sysCompanyCode;

    @ApiModelProperty(value = "用户角色名称")
    @NotNull(message = "用户角色信息不能为空")
    private String roleName;

    @ApiModelProperty(value = "用户角色编码")
    private String roleCode;

    @ApiModelProperty(value = "工号")
    private String jobNumber;

    @ApiModelProperty(value = "用户token")
    private String token;

    @ApiModelProperty(value = "sessionId")
    private String uid;

    @ApiModelProperty(value = "用户头像")
    private String img;

    @ApiModelProperty(value = "是否供应商用户（0否/1是）")
    private Integer isVendor;

    @ApiModelProperty("是否外网访问 0：否 1：是")
    private Boolean isExtNetWork;

    /**
     * 用户对应的品牌ID权限列表
    */
    @ApiModelProperty(value = "用户对应的品牌ID权限列表")
    private List<Integer> brandIds;

}